package platformer;

import java.awt.Graphics;

public class Panel extends javax.swing.JPanel {

    Manager data;
    chars.Player player;

    public void setData(Manager data) {
        this.data = data;
        player = data.player;
    }

    @Override
    public void paintComponent(Graphics g) {
        super.paintComponent(g);
        data.draw(g, this);
    }

    public void updateStuff() {
        this.repaint();
        this.validate();
    }
}
